package lab02.test12;

public class Rectangle extends Shape {
    int length;
    int hight;

    @Override
    public double getPerimeter() {
        System.out.println("长方形的周长：");
        return (length  + hight);
    }

    @Override
    public double getArea() {
        System.out.println("长方形的面积：");
        return length * hight;
    }
}
